set(SCL_DIRS
    apache
    arr
    cee
    cim
    checkpoint
    cisco
    collectd
    default-network-drivers
    darwinosl
    discord
    elasticsearch
    ewmm
    freebsd-audit
    fortigate
    google
    graphite
    graylog2
    hdfs
    stats-exporter
    iptables
    jellyfin
    junos
    kafka
    linux-audit
    loadbalancer
    loggly
    logmatic
    logscale
    mariadb
    mbox
    netskope
    nodejs
    openobserve
    opensearch
    osquery
    pacct
    paloalto
    pihole
    pgsql
    python
    qbittorrent
    rewrite
    slack
    snmptrap
    solaris
    splunk
    sudo
    sumologic
    syslogconf
    system
    telegram
    websense
    windowseventlog
    azure
)

install(DIRECTORY ${SCL_DIRS} DESTINATION share/syslog-ng/include/scl
        USE_SOURCE_PERMISSIONS)
install(FILES scl.conf DESTINATION share/syslog-ng/include)

if (NOT EXISTS ${CMAKE_INSTALL_PREFIX}/etc/syslog-ng.conf)
    install(FILES syslog-ng.conf DESTINATION etc)
endif()
